my_foods = ["pizza", "falafel", "carrot cake"]
friend_foods = my_foods[:]

# 使用切片方式复制列表的话，my_foods和friend_foods是两个不相关的列表
# 使用friends_foods = my_foods，这两个变量指向的是同一个列表
my_foods.append("cannoli")
friend_foods.append("ice cream")

print("My favourite foods are:")
print(my_foods)

print("\nMy friend's favourite foods are:")
print(friend_foods)